//
//  UIButton+BuryingPoint.m
//  eBondMall
//
//  Created by 赵世杰 on 2018/6/6.
//  Copyright © 2018 zhaoshijie. All rights reserved.
//

#import "UIButton+BuryingPoint.h"
#import "SwizzlingDefine.h"

@implementation UIButton (BuryingPoint)




+ (void)load
{
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
    
        SEL action = @selector(sendAction:to:forEvent:);
        SEL sj2_action = @selector(sj2_sendAction:to:forEvent:);
        
        
        swizzling_exchangeMethod(self, action, sj2_action);
        
    });
    
}



- (void)sj2_sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event
{
    [self sj2_sendAction:action to:target forEvent:event];
    
    //  上报点击
//    NSLog(@"VC: %@    tag: %@",NSStringFromClass([self.viewController class]),@(self.tag));
    
    
}


@end
